<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>My JSP 'addClass.jsp' starting page</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
<LINK href="<%=basePath%>/css/main.css" type="text/css" rel="stylesheet">
<script type="text/javascript"
	src="<%=basePath%>js/My97DatePicker/WdatePicker.js"></script>
<script type="text/javascript" src="fckeditor/fckeditor.js"></script>
<script type="text/javascript">
		window.onload = function()
		{
			var oFCKeditor = new FCKeditor( 'newsContext','100%','500' ) ;
			oFCKeditor.BasePath = "fckeditor/" ;
			oFCKeditor.ToolbarSet="Basic";
			oFCKeditor.ReplaceTextarea() ;
		}

function CheckForm()
{
   if(document.getElementById("title").value=="")
   { alert("文章标题不能为空！");
     return (false);
   }
   
   return (true);
}

</script>

</head>

<body>
<TABLE class=small cellSpacing=0 cellPadding=3 width="100%" border=0>
	<TBODY>
		<TR>
			<TD class=Big><IMG src="<%=basePath%>/img/office/address.gif"
				align=absMiddle><SPAN class=big3>&nbsp; 添加学子园地 </SPAN></TD>
		</TR>
	</TBODY>
</TABLE>

<form action="<%=basePath%>HotNewsServlet?action=add" method="post"
	onsubmit="return CheckForm();">
<table class="TableBlock" width="750" align="center">
	<tr align="center">
		<td class="TableData"><a>所属栏目： </a></td>
		<td class="TableData" align="left"><select name="typeID">
			<c:forEach items="${typeList}" var="list">
				<option value="${list.typeID }">${list.typeName }</option>
			</c:forEach>

		</select></td>

	</tr>
	<tr align="center">
		<td class="TableData"><a>标题：</a></td>
		<td class="TableData" align="left"><input size="50" type="text"
			id="title" name="newsTitle"></td>

	</tr>
	<tr align="center">
		<td class="TableData"><a>内容：</a></td>
		<td class="TableData"><textarea id="newsContext"
			name="newsContext">

</textarea></td>

	</tr>
	<tr align="center">

		<td colspan="2" class="TableData" align="center"><input
			type="submit" class="SmallButton" value="确定"> <input
			type="button" class="SmallButton" value="返回"
			onclick="javascript:history.go(-1);"></td>

	</tr>

</table>
</form>
</body>

</html>
